import request from '@/plugins/axios'

export function fetchList(query) {
  return request({
    url: '/api/financemanagereceiptdetail/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/api/financemanagereceiptdetail',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/api/financemanagereceiptdetail/' + id,
    method: 'get'
  })
}
export function getfinancedetail(receiptId) {
    return request({
        url:'/api/financemanagereceiptdetail/receiptDetail/'+receiptId,
        method:'get'
    })
}
export function delObj(id) {
  return request({
    url: '/api/financemanagereceiptdetail/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/api/financemanagereceiptdetail',
    method: 'put',
    data: obj
  })
}
